﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;

namespace Quadrant.domain.Models
{
    public class Zone
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long? Id { get; set; }
        [Required]
        public Byte BoardZone { get; set; }
        [Required, StringLength(32)]
        public String Name { get; set; }
        [StringLength(256)]
        public String Legend { get; set; }

        [Required]
        public Guid QuadrantId { get; set; }

        [JsonIgnore]
        [ForeignKey("QuadrantId")]
        public virtual Quadrant Quadrant { get; set; }

    }
}
